package com.thl.levelcache.decoration;

import com.thl.levelcache.decoration.up.RedisDecorate;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhao yi
 * @create 2020-05-23 21:48
 * @desc
 **/
@Component
public class LvCacheManager implements ComponentCache {

    @Autowired
    private RedisDecorate redisDecorate;


    @Override
    public <T> T getCache(String key, Class<T> returnClass, ProceedingJoinPoint joinPoint) {
        return redisDecorate.getCache(key, returnClass, joinPoint);
    }
}
